package com.example.smartagriculture.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.smartagriculture.controller.DTO.LoginDTO;
import com.example.smartagriculture.controller.DTO.RePwdDTO;
import com.example.smartagriculture.controller.DTO.UserDTO;
import com.example.smartagriculture.entity.Account;
import com.github.yulichang.base.MPJBaseService;

import java.util.List;

public interface IAccountService extends IService<Account> {
    Account Login(LoginDTO loginDTO);
    String getCode();

    Boolean mailCode(RePwdDTO rePwdDTO);

    Boolean rePwd(RePwdDTO rePwdDTO);

    Boolean verifyCode(RePwdDTO rePwdDTO);

    Boolean signup(RePwdDTO rePwdDTO);
    List<UserDTO> selectAll();
}
